<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-student_id" class="control-label col-xs-12 col-sm-2">{:__('Student')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-student_id" data-rule="required" class="form-control select" name="row[student_id]" >
                <option value="">请选择学生</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-teacher_id" class="control-label col-xs-12 col-sm-2">{:__('Teacher')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-teacher_id" data-rule="required" class="form-control select" name="row[teacher_id]" >
                <option value="">请选择老师</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-class_id" class="control-label col-xs-12 col-sm-2">{:__('Class_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-class_id" data-source="classes/classes/index" class="form-control selectpage" name="row[class_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-rating" class="control-label col-xs-12 col-sm-2">{:__('Rating')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-rating" data-rule="required" class="form-control" name="row[rating]">
                <option value="1">{:__('Very bad')}</option>
                <option value="2">{:__('Bad')}</option>
                <option value="3">{:__('Average')}</option>
                <option value="4">{:__('Good')}</option>
                <option value="5" selected>{:__('Very good')}</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control" rows="5" name="row[content]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-is_anonymous" class="control-label col-xs-12 col-sm-2">是否匿名:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[is_anonymous]-0"><input id="row[is_anonymous]-0" name="row[is_anonymous]" type="radio" value="0" checked> 实名</label> 
                <label for="row[is_anonymous]-1"><input id="row[is_anonymous]-1" name="row[is_anonymous]" type="radio" value="1"> 匿名</label> 
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8" id="div-status">
            <input id="c-status" name="row[status]" type="hidden" value="1">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher active" data-input-id="c-status" data-yes="1" data-no="0">
                <i class="fa fa-toggle-on text-success fa-2x"></i>
            </a>
            <div data-favisible="switch=1" class="p-3">启用</div>
            <div data-favisible="switch=0" class="p-3">禁用</div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>